/**
 * 参数设置管理初始化
 */
var CreditCardLog = {
    id: "creditCardLogTable",	//表格id
    seItem: null,		//选中的条目
    table: null,
    layerIndex: -1
};

/**
 * 初始化表格的列
 */
CreditCardLog.initColumn = function () {
    var columns = [
        {field: 'selectItem',visible:false},
        {title: 'id', field: 'id', align: 'center', valign: 'middle',width:'50px'},
        {title: '手机号码', field: 'phone', align: 'center', valign: 'middle'},
        {title: '生成时间', field: 'add_time', align: 'center', valign: 'middle'},
        {title: '失败原因', field: 'remark', align: 'center', valign: 'middle'}
    ]
    return columns;
};



CreditCardLog.search = function () {
    var queryData = {};
    queryData['phone'] = $("#search_phone").val();
    CreditCardLog.table.refresh({query: queryData});
};



$(function () {
    var defaultColunms = CreditCardLog.initColumn();
    var table = new BSTable(CreditCardLog.id, "/creditCardLog/list", defaultColunms);
    table.setPaginationType("server");
    CreditCardLog.table = table.init();
});



